package bancosys.tec.utils.db;

import bancosys.tec.exception.AbstractException;
import bancosys.tec.exception.LocalizedMessageHolder;

/**
 * @author Marcio Ribeiro (mmr)
 * @created Apr 26, 2007
 */
public class CouldNotProcessStatementException extends AbstractException {

    public static final String BUNDLE_NAME = "jmine-tec-utils-messages";

    /**
     * Constructor
     * 
     * @param messageHolder messageHolder
     * @param cause cause
     */
    public CouldNotProcessStatementException(LocalizedMessageHolder messageHolder, Throwable cause) {
        super(messageHolder, cause);
    }

    /**
     * Constructor
     * 
     * @param messageHolder messageHolder
     */
    public CouldNotProcessStatementException(LocalizedMessageHolder messageHolder) {
        super(messageHolder);
    }

    /**
     * Retorna o nome do arquivo de i18n que deve ser usado para localizar a mensagem. Este arquivo será procurado no classpath.
     * 
     * @return String
     */
    @Override
    public String getBundleBaseName() {
        return BUNDLE_NAME;
    }
}